<?php
use App\Models\Base\ServerList;
use Encore\Admin\Widgets\Form;
?>
<!-- 触发活动模态框 -->
<div class="modal fade" id="activity-modal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
          <span class="sr-only">Close</span>
        </button>
        <h4 class="modal-title">激活活动</h4>
      </div>
      <div class="modal-body">
        <?php
        $form = new Form();
        $form->action(route('activity.action'));
        $form->method('post');
        $form->select('server_id','游戏服')->options(ServerList::all()->pluck('name', 'server_id'));
        $form->hidden('_token')->default(csrf_token());
        echo $form->render();
        ?>
      </div>
    </div>
  </div>
</div>
